using RestaurantFinder.Core.Models;

namespace RestaurantFinder.Core.Services;

/// <summary>
/// 高德地图服务接口
/// </summary>
public interface IGaodeMapService
{
    /// <summary>
    /// 搜索指定位置附近的POI
    /// </summary>
    /// <param name="request">搜索请求参数</param>
    /// <returns>POI搜索结果</returns>
    Task<GaodePoiResponse> SearchPoisAsync(RestaurantSearchRequest request);

    /// <summary>
    /// 将高德POI转换为餐厅模型
    /// </summary>
    /// <param name="pois">高德POI列表</param>
    /// <param name="userLocation">用户位置</param>
    /// <returns>餐厅列表</returns>
    List<Restaurant> ConvertToRestaurants(List<GaodePoi> pois, Location userLocation);
} 